# Contributor: David Demelier <markand@malikania.fr>
# Maintainer: David Demelier <markand@malikania.fr>
pkgname=libretro-gw
pkgver=0_git20220410
pkgrel=0
_commit="d08a08154ce8ed8e9de80582c108f157e4c6b226"
pkgdesc="libretro core for Game & Watch simulators"
url="https://github.com/libretro/gw-libretro"
arch="all"
license="Zlib"
source="$pkgname-$_commit.tar.gz::https://github.com/libretro/gw-libretro/archive/$_commit.tar.gz"
builddir="$srcdir/gw-libretro-$_commit"
options="!check" # No tests

build() {
	make -f Makefile.libretro
}

package() {
	install -Dm644 gw_libretro.so "$pkgdir"/usr/lib/libretro/gw_libretro.so
}

sha512sums="
9e07a6c477721823e4ec546601a8b9b3df9619ea7bd334ee71586a24c02e6cc2d7841ff26bdd1f192684be14d61b44caab189285082c58767bd83634b74f6baf  libretro-gw-d08a08154ce8ed8e9de80582c108f157e4c6b226.tar.gz
"
